{% extends 'admin/change_form.html' %}
{% load i18n shop_tags admin_urls static admin_modify %}

{% block breadcrumbs %}
<div class="breadcrumbs">
<a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
    
{% breadcrumbs request opts as breadcrumbs %}

{% if breadcrumbs %}
    {% for k, v in breadcrumbs.items %}
    &rsaquo; <a href="#">{{ k }}</a>
    &rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ v.name }}</a>
    {% endfor %} 
    &rsaquo; {% if add %}{% blocktranslate with name=opts.verbose_name %}Add {{ name }}{% endblocktranslate %}{% else %}{{ original|truncatewords:"18" }}{% endif %}
{% else %}
&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ opts.app_config.verbose_name }}</a>
&rsaquo; {% if has_view_permission %}
<a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>
{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %}
&rsaquo; {% if add %}{% blocktranslate with name=opts.verbose_name %}Add {{ name }}{% endblocktranslate %}{% else %}{{ original|truncatewords:"18" }}{% endif %}
{% endif %}
</div>
{% endblock %}